﻿@using MVCSoict.Views.Shared.Data
@model IEnumerable<MVCSoict.Models.Action>


@{
	ViewBag.Title = "Index";
	Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Danh sách hành động</h2>
@Html.Partial("_PaginationPartial")

<table class="table">
	<tr>
		<th>
			@Html.DisplayNameFor(model => model.name)
		</th>
		<th>
			@Html.DisplayNameFor(model => model.description)
		</th>
		<th></th>
	</tr>

	@foreach (var item in Model)
	{
		<tr>
			<td>
				@Html.DisplayFor(modelItem => item.name)
			</td>
			<td>
				@Html.DisplayFor(modelItem => item.description)
			</td>
			<td>
				@Html.Partial("_ControlPartial3", new Item { ID = item.id })
			</td>
		</tr>
	}

</table>


<script src="/Scripts/Soict/Action.js" defer="defer"></script>
